package com.job.GaoYuXuan.Homework0707.Example1;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-08 16:03:29
 */
public class CodeBlock {
    public static int num = 100;
    public String name;

    {
        this.name = "Tracy";
        System.out.println("代码块代码已执行！！！");
    }

    static{
        System.out.println("静态代码块已执行！！！");
    }

    public CodeBlock(String name) {
        this.name = name;
        System.out.println("有参构造已执行！！！");
    }

    public CodeBlock() {
        System.out.println("无参构造已执行！！！");
    }


}